var cols = 2;
var obj = {
	cod : "",
	tipo : ""
}

function getCabecera() {
	var row = "<thead>";
	row = row + "<tr class=\"cabecera\">";
	row = row + "<th>C&oacute;digo</th>";
	row = row + "<th>Tipo</th>";
	row = row + "</tr>";
	row = row + "</thead>";
	return row;
}

function getFila(data) {
	var row = "<tr class=\"fila\">";
	row = row + "<td class=\"tdelemento\" id=\"col1_" + data.id + "\">"
			+ data.cod + "</td>";
	row = row + "<td class=\"tdelemento\" id=\"col2_" + data.id + "\">"
			+ data.tipo + "</td>";
	row = row + "</tr>";
	return row;
}